﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="FrListarSegTareas.aspx.cs" Inherits="Tarea_FrListarSegTareas" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
   
<h1>Seguimiento de Tareas</h1><a href="FrListarTareas.aspx">Volver a tareas</a>
<form id="form1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
     &nbsp;<table width= "100%">
<tr>
<td width="18%">Seleccionar Tarea</td>
<td width="30%">
    <asp:DropDownList ID="DropDownListTareas" runat="server" 
        DataSourceID="SqlDataSource1" DataTextField="nombre" 
        DataValueField="idTarea" AutoPostBack="true" 
        onselectedindexchanged="DropDownListTareas_SelectedIndexChanged">
          
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:BDSUEConnectionString1 %>" 
        SelectCommand="SELECT [idTarea], [nombre] FROM [Tarea]"></asp:SqlDataSource>
    <asp:LinkButton ID="LinkButtonTodas" runat="server" 
        onclick="LinkButtonTodas_Click">Todas</asp:LinkButton>
    </td>
<td>
    Nombre Practicante</td>
<td>
    <asp:TextBox ID="TextBoxNobrePracticante" runat="server" Width="133px" onkeydown = "return (event.keyCode!=13)"></asp:TextBox>
    </td>
    <td>
    
        <asp:Button ID="ButtonBuscar" runat="server" Text="Buscar" CssClass="button" 
            onclick="ButtonBuscar_Click" Width="59px" />
    
    </td>
</tr>
</table>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<div align="left">
 <asp:GridView ID="GridView1" AutoGenerateColumns="False" AllowPaging="true" 
        runat="server" onpageindexchanging="GridView1_PageIndexChanging" PageSize="5">
    <EmptyDataTemplate>
                No hay seguimiento de tareas
            </EmptyDataTemplate>
                 <Columns>
                  <asp:BoundField HeaderText="Nombre" DataField="nombre" />             
                  <asp:BoundField HeaderText="Apellido" DataField="apellido" />             
                  <asp:BoundField HeaderText="Tarea" DataField="Tarea" />   
                  <asp:HyperLinkField HeaderText="Archivo" DataTextField="Archivo" DataNavigateUrlFields="NombreUsuario, idTarea, Archivo"
                  DataNavigateUrlFormatString="/SUEWebSite/Archivo/Tareas/{0}/{1}/{2}" Text="" />
                  <asp:BoundField HeaderText="Subido" DataField="Subido" />   
            </Columns>
    </asp:GridView>
    </div>
</ContentTemplate>
<Triggers>
    <asp:AsyncPostBackTrigger ControlID="DropDownListTareas" EventName="SelectedIndexChanged" />
    <asp:AsyncPostBackTrigger ControlID="LinkButtonTodas" EventName="Click" />
    <asp:AsyncPostBackTrigger ControlID="ButtonBuscar" EventName="Click" />
    
</Triggers>
     </asp:UpdatePanel>
    
    
    </form>
</asp:Content>

